﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZX.OA.Model;
using ZX.OA.DAL;
namespace ZX.OA.BLL
{
  public   class EvectionBll
    {

      /// <summary>
      /// 调用出差的DAL层
      /// </summary>
      EvectionDal dal = new EvectionDal();

      /// <summary>
      /// 出差列表的显示
      /// </summary>
      /// <returns></returns>
      public List<EvectionInfo> Show_EvectionInfo()
      {
          return dal.Show_EvectionInfo();
      }
      /// <summary>
      /// 部门下拉框显示
      /// </summary>
      /// <returns></returns>
      public List<DeptInfo> Drop_DeptInfo()
      {
          return dal.Drop_DeptInfo();
      }
      /// <summary>
      /// 添加出差信息
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      public int Add_EvectionInfo(EvectionInfo evection)
      {

          return dal.Add_EvectionInfo(evection);
      }
      /// <summary>
      /// 显示出差详情
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      public EvectionInfo Upd_EvectionInfo(int id)
      {
          return dal.Upd_EvectionInfo(id);
      }
      /// <summary>
      /// 撤销出差信息
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      public int Del_EvectionInfo(int id)
      {

          return dal.Del_EvectionInfo(id);

      }
      /// <summary>
      /// 查询出差信息
      /// </summary>
      /// <param name="EvectionPerson"></param>
      /// <param name="DeptId"></param>
      /// <returns></returns>
      public List<EvectionInfo> Sel_EvectionInfo(string EvectionPerson, int? DeptId)
      {
          return dal.Sel_EvectionInfo(EvectionPerson, DeptId);
      }
    }
}
